home *** CD-ROM | disk | FTP | other *** search
- HP LaserJet Print Preparation Utility
- Conoco Inc., Lee S. Fields
-
- Function: Removes trailing carriage returns/linefeeds and converts
- IBM Graphics characters to HP LaserJet approximations.
-
- Input: Uses stdin for input, files may be redirected.
-
- Output: Uses stdout for output, files may be redirected.
-
- Example: To route a file to LPT1, use the format:
-
- HPLJPREP <example.prn >LPT1
-
-
- HPLJPREP was designed to take an ascii file created to print on a
- dot-matrix style printer and convert it to a format acceptable to the
- HP LaserJet Printer.
-
- Files created for a dot-matrix printer, such as the IBM Graphics
- Printer, use a page length of 66 lines with blank lines appended to
- the end of each page. This often results in extra blank pages being
- printed when using a LaserJet. HPLJPREP removes all carriage return
- and linefeed combinations after the last line of text on each page.
- This strategy will not work with all print files, but it will work in
- most cases.
-
- Some print files use the IBM Extended Ascii characters to do simple
- graphics such as drawing boxes around titles. These characters
- translate to foreign language characters on the LaserJet, so they are
- translated to another character that resembles the same shape.
-
- Input and output are done using the DOS STDIN and STDOUT. These are
- normally set to the keyboard for input and the screen for output.
- Both of these may be redirected using the DOS redirection operators, <
- and >, on the command line. The < symbol redirects input from the
- keyboard to the filename or device that follows it. The > symbol
- redirects output from the screen to the filename or device that
- follows it. To route the input from the file TEST.DOC to the screen,
- use the command "HPLJPREP < TEST.DOC". To route the output from the
- screen to the file TEST.PRN, use the command "HPLJPREP > TEST.PRN".
- To route the input from the file TEST.DOC and the output to the file
- TEST.PRN use the command "HPLJPREP <TEST.DOC >TEST.PRN". Printer
- names may also be used like filenames, such as routing the output to
- LPT1 and input from the file TEST.DOC, use the command
- "HPLJPREP <TEST.DOC >LPT1".
-
- Input/Output Summary
-
- From To Command
- keyboard screen HPLJPREP
- keyboard file - TEST.PRN HPLJPREP >TEST.PRN
- file - TEST.DOC screen HPLJPREP <TEST.DOC
- file - TEST.DOC file - TEST.PRN HPLJPREP <TEST.DOC >TEST.PRN
- file - TEST.DOC printer - LPT1 HPLJPREP <TEST.DOC >LPT1